home *** CD-ROM | disk | FTP | other *** search
/ PC Play 129 / pc play 129.iso / Demo / man2 / man2.exe / data / scripts / environment_effects_scripts / environment_platformsmoke.lua < prev    next >
Encoding:
Text File  |  2007-01-25  |  3.6 KB  |  147 lines

  1. desc = getEffectDescriptionP(ENET_EFFECT_PS_ENVIRONMENT_PLATFORMSMOKE)
  2.  
  3. desc.ClassID = ENCLASS_SIMPLEPARTICLESYSTEM
  4. desc.EffectClassType = ENECT_PARTICLESYSTEM
  5.  
  6. desc.ScriptSet = ENSCRIPTSET_UNKNOWN
  7. desc.RelativePosition = ENLOCALPOS_NOTSPECIFIED
  8. local vzbzd1 = D3DXVECTOR3:new(0,0,0)
  9. desc.LocalPosition = vzbzd1
  10. vzbzd1:delete()
  11. desc.isAnimateTexture = false
  12. desc.RenderType = ENRENDERTYPE_GEOMETRY
  13.  
  14. Emitter = desc.PS.PSDescription
  15. Emitter.ParticleTypesNumber = 1
  16. local vzbzd2 = D3DXVECTOR3:new(0,0,0)
  17. Emitter.EmitterPosition = vzbzd2
  18. vzbzd2:delete()
  19. local vzbzd3 = D3DXVECTOR3:new(0,0,0)
  20. Emitter.EmitterDirection = vzbzd3
  21. vzbzd3:delete()
  22. Emitter.EmitterLifeTime = 4
  23.  
  24.  
  25.  
  26.  
  27.  
  28.  
  29.  
  30.  
  31.  
  32.  
  33.  
  34.  
  35.  
  36.  
  37.  
  38.  
  39.  
  40. PT = Emitter.ParticleTypesParams[1]
  41. PT.IsEmitterLocked = false
  42. PT.DrawOrder = 1
  43. PT.Material = ENMAT_SIMPLEPARTICLE
  44.  
  45.  
  46. PT.TextureName = "environment_effect_explosion_smoke14.dds"
  47.  
  48. PT.ParticlesPerSecond = 30.0;
  49. PT.InitialNumberOfParticles = 0.0;
  50. PT.BaseLifeTime = 1.0;
  51. PT.BaseLifeTimeVariance = 0.4;
  52. PT.BaseSpeed = 1.0;
  53. PT.BaseSpeedVariance = 0.2;
  54.  
  55. PT.TangentSpeed = 1.0;
  56. PT.TangentSpeedVariance = 0.0;
  57. local vzbzd4 = D3DXVECTOR3:new(1.0,0.0,0.0)
  58. PT.TangentDirection = vzbzd4
  59. vzbzd4:delete()
  60. PT.TangentAngleMin = 0.0;
  61. PT.TangentAngleMax = 6.28;
  62. PT.IsTangentDependOnBase = false;
  63.  
  64. PT.BaseAngle = 3.0;
  65. PT.BaseAngleVariance = 5.0;
  66. PT.BaseAngleSpeed = 0.2;
  67. PT.BaseAngleSpeedVariance = 0.3;
  68. PT.BaseAngleSpeedDirection = 0;
  69. local vzbzd5 = D3DXVECTOR3:new(0.0,1.0,0.0)
  70. PT.BaseDirection = vzbzd5
  71. vzbzd5:delete()
  72. local vzbzd6 = D3DXVECTOR3:new(0.0,0.0,0.0)
  73. PT.BaseDirectionVariance = vzbzd6
  74. vzbzd6:delete()
  75. local vzbzd7 = D3DXVECTOR3:new(0,-1,0)
  76. PT.BasePosition = vzbzd7
  77. vzbzd7:delete()
  78. local vzbzd8 = D3DXVECTOR3:new(2,0,2)
  79. PT.BasePositionVariance = vzbzd8
  80. vzbzd8:delete()
  81. PT.BaseSize = 2.0;
  82. PT.BaseSizeVariance = 0.8;
  83.  
  84. -- color over time
  85. PT.ColorOverTimeR[1].TimePercent = 0.0;
  86. PT.ColorOverTimeR[1].Value = 0.3;
  87. PT.ColorOverTimeG[1].TimePercent = 0.0;
  88. PT.ColorOverTimeG[1].Value = 0.32;
  89. PT.ColorOverTimeB[1].TimePercent = 0.0;
  90. PT.ColorOverTimeB[1].Value = 0.4;
  91.  
  92. PT.ColorOverTimeR[2].TimePercent = 1.0;
  93. PT.ColorOverTimeR[2].Value = 0.1;
  94. PT.ColorOverTimeG[2].TimePercent = 1.0;
  95. PT.ColorOverTimeG[2].Value = 0.12;
  96. PT.ColorOverTimeB[2].TimePercent = 1.0;
  97. PT.ColorOverTimeB[2].Value = 0.15;
  98.  
  99. -- transparency over time
  100. PT.TransparencyOverTime[1].TimePercent = 0.0;
  101. PT.TransparencyOverTime[1].Value = 0.0;
  102.  
  103. PT.TransparencyOverTime[2].TimePercent = 0.1;
  104. PT.TransparencyOverTime[2].Value = 0.2;
  105.  
  106. PT.TransparencyOverTime[3].TimePercent = 1.0;
  107. PT.TransparencyOverTime[3].Value = 0.0;
  108.  
  109. -- size over time
  110. PT.SizeOverTime[1].TimePercent = 0.0;
  111. PT.SizeOverTime[1].Value = 5.0;
  112.  
  113. PT.SizeOverTime[2].TimePercent = 1.0;
  114. PT.SizeOverTime[2].Value = 10.0;
  115.  
  116. -- Speed over time
  117. PT.SpeedOverTime[1].TimePercent = 0.0;
  118. PT.SpeedOverTime[1].Value = 1.0;
  119.  
  120. PT.SpeedOverTime[2].TimePercent = 1.0;
  121. PT.SpeedOverTime[2].Value = 0.0;
  122.  
  123. -- Tangent Speed over time
  124. PT.TangentSpeedOverTime[1].TimePercent = 0.0;
  125. PT.TangentSpeedOverTime[1].Value = 4.0;
  126.  
  127. PT.TangentSpeedOverTime[2].TimePercent = 1.0;
  128. PT.TangentSpeedOverTime[2].Value = 0.0;
  129.  
  130.  
  131. -- GravityAcceleration over time
  132. PT.GravityAccelerationOverTime[1].TimePercent = 0.0;
  133. PT.GravityAccelerationOverTime[1].Value = 5.0;
  134.  
  135. PT.GravityAccelerationOverTime[2].TimePercent = 1.0;
  136. PT.GravityAccelerationOverTime[2].Value = 5.0;
  137.  
  138. -- AngleSpeed over time
  139. PT.AngleSpeedOverTime[1].TimePercent = 0.0;
  140. PT.AngleSpeedOverTime[1].Value = 0.5;
  141.  
  142. PT.AngleSpeedOverTime[2].TimePercent = 1.0;
  143. PT.AngleSpeedOverTime[2].Value = 0.1;
  144.  
  145.  
  146.  
  147.